From c68a734164b733525346272ffe8a8600c1c4703f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 25 Jun 2002 12:58:54 +0000 Subject: [PATCH] (Fcall_interactively): When checking to see if doprnt hit the end of callint_message, allow for a terminating '\0'. --- src/callint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callint.c b/src/callint.c index d172c118a92..3eca790c6df 100644 --- a/src/callint.c +++ b/src/callint.c @@ -464,7 +464,7 @@ supply if the command inquires which events were used to invoke it. */) int nchars = doprnt (callint_message, callint_message_size, prompt1, (char *)0, j - 1, (char **) argstrings + 1); - if (nchars < callint_message_size) + if (nchars < callint_message_size - 1) break; callint_message_size *= 2; callint_message -- 2.30.2